package com.sinodata.bsm.common.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * DefaultEventRule entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "DEFAULT_EVENT_EXCLUDE_RULE")
public class DefaultEventExcludeRule {

    private Long id;

    private Long resId;

    private Long defaultEventRuleId;

    public DefaultEventExcludeRule() {

    }

    public DefaultEventExcludeRule(Long id) {
        this.id = id;
    }

    public DefaultEventExcludeRule(Long id, Long resId, Long defaultEventRuleId) {
        this.id = id;
        this.resId = resId;
        this.defaultEventRuleId = defaultEventRuleId;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequence")
    @SequenceGenerator(name = "sequence", sequenceName = "DEFAULT_EVENT_EXCLUDE_RULE_SEQ")
    @Column(name = "ID", unique = true, nullable = false, precision = 18, scale = 0)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "RES_ID", precision = 18, scale = 0)
    public Long getResId() {
        return resId;
    }

    public void setResId(Long resId) {
        this.resId = resId;
    }

    @Column(name = "DEFAULT_EVENT_RULE_ID", precision = 18, scale = 0)
    public Long getDefaultEventRuleId() {
        return defaultEventRuleId;
    }

    public void setDefaultEventRuleId(Long defaultEventRuleId) {
        this.defaultEventRuleId = defaultEventRuleId;
    }

    @Override
    public String toString() {
        return "DefaultEventExcludeRule [id=" + id + ", resId=" + resId + ", defaultEventRuleId=" + defaultEventRuleId + "]";
    }

}
